﻿<?php
date_default_timezone_set('Asia/Shanghai');
header("Content-type:text/html;charset=utf-8");
include_once('Model.class.php');
$model = M('game');

if($_POST["id"]){
    $res =$model->where("id=".$_POST['id'])->delete();
    if($res){
        echo '{"status": 1, "data": '.urldecode(json_encode($res)).'}';
    }
}else {
    echo '{"status": 0}';
}